const loadText = document.querySelector('.loading')
const bg = document.querySelector('.bg')
let load = 0;
let run = setInterval(running, 30)
function running() {
    load++;
    if (load > 99) {
        clearInterval(run)
    }
    loadText.innerHTML = `${load}%`
    loadText.style.opacity = 100 - load
    bg.style.filter = `blur(${100 - load}px)`
}